package com.zhj.demo.ioc;

import com.zhj.demo.aop.AspectTarget;
import com.zhj.helloframework.core.annotation.Component;
import com.zhj.helloframework.injection.annotation.Autowired;

/**
 * @Author: zhj
 * @Description: 需要被依赖注入的类
 * @Date: 2021/10/9 16:55
 * @Version: 1.0
 */
@Component
public class IocTest {

    @Autowired
    private AspectTarget aspectTarget;

    public void test() {
        aspectTarget.testRight();
        aspectTarget.testThrowing();
    }
}
